package com.dream.util;

import com.google.gson.Gson;

public class Result {
	public String message; 
	public String remark;
	public boolean success;
	
	public static String toClient(Object message,String remark,boolean suc) {
		Result r=new Result();
		r.message=message.toString();
		r.remark=remark;
		r.success=suc;
		Gson g=new Gson();
		return g.toJson(r);
	}
	public static String toClient(Object message,boolean suc) {
		Result r=new Result();
		r.message=message.toString();
		r.remark="";
		r.success=suc;
		Gson g=new Gson();
		return g.toJson(r);
	}
	
}
